<?php
class LinkIndexAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->layout = 'index';
	}
	
	public function execute()
	{
		//取友情链接
		$linkService = new BaseDbService('link');
		$this->data['links'] = $linkService->rows(array(), 'orderby DESC,id ASC');
	}
}
